﻿using System;
using System.ServiceModel;
using System.ServiceModel.Activation;

namespace Navigant.WebServices
{
    /// <summary>
    /// This is required if the IIS site has multiple host headers.
    /// </summary>
    public class ServiceFactory : ServiceHostFactory
    {
        protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses)
        {
            return new ServiceHost(serviceType, baseAddresses[0]);
        }
    }
}
